<?php
$fishes=["鲑鱼","鳟鱼","鲈鱼"];
echo "i catch ",$fishes[0],",",$fishes[1],"and",$fishes[2];
echo PHP_EOL;
var_dump($fishes);
echo PHP_EOL;
echo "有",count($fishes),"种鱼";
$len=count($fishes);
$x=0;
while($x<$len){
    echo $fishes[$x];
    $x++;
}
echo PHP_EOL,"下面是遍历关联数组",PHP_EOL;

$fishkind=["鲈鱼"=>"鲈形目","草鱼"=>"鲤科","鳟鱼"=>"鲑科"];
foreach($fishkind as $y=>$y_kind)
    {
        echo $y,"是",$y_kind;
        echo PHP_EOL;
    }
echo($_SERVER['PHP_SELF']);

?>